package cn.itcast.txano;

import org.springframework.transaction.annotation.Transactional;

@Transactional
public class OrderService {
	private OrderDao orderDao;

	public OrderDao getOrderDao() {
		return orderDao;
	}

	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}

	public void accountMoney() {
		orderDao.lessMoney();

		int i = 10 / 0;
		orderDao.moreMoney();
	}
}
